home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2002 March
/
PCWorld_2002-03_cd.bin
/
Software
/
TemaCD
/
xteq
/
setup.exe
/
{app}
/
plugins
/
XQ Windows Serial.xpl
< prev
next >
Wrap
Text File
|
2001-01-13
|
1KB
|
68 lines
"FILE"="Xteq Systems X-Setup Plugin 3.1"
"TYPE"="1"
"COUNT"="1"
"UIPATH"="System\User Data"
"NAME"="Windows PID"
"LANGUAGE"="VBScript"
"TEXT 1"="PID"
"DESCRIPTION 1"=""
"DESCRIPTION 2"=""
"DESCRIPTION 3"=""
"AUTHOR"="???"
"COPYRIGHT"="???"
"COMMENT 1"=" "
"COMMENT 2"=" "
"COMMENT 3"=" "
"COMMENT 4"=" "
"COMMENT 5"="Done by AmoKKomA..."
strRegPath="HKLM\Software\Microsoft\Windows\CurrentVersion\ProductID"
strRegPathNT="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductID"
Sub Plugin_Initialize
if GetWinVer=1 or GetWinVer=3 then
strValue=RegReadValue(strRegPath)
else
strValue=RegReadValue(strRegPathNT)
end if
Call SetUIElement(1,strValue)
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
strValue=GetUIElement(1)
If Len(strValue)<=0 Then
Call MsgError("You have to enter a PID!")
Else
if GetWinVer=1 or GetWinVer=3 then
Call RegWriteValue(strRegPath,strValue,1)
else
Call RegWriteValue(strRegPathNT,strValue,1)
end if
End If
End Sub
Sub Plugin_Terminate
End Sub